<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">
    <h:head>

    </h:head>
    <h:body>      
        <h:form>
            <p:dataTable value="#{enderecoControlador.enderecos}" var="endereco" paginator="true" rows="10"
                         paginatorTemplate="{CurrentPageReport} {RowsPerPageDropdown} {FirstPageLink} {PreviousPageLink} 
                         {NextPageLink} {LastPageLink} {PageLinks}" rowKey="#{endereco.id}" selectionMode="multiple"
                         >
                <p:column headerText="Rua">
                    <h:outputText value="#{endereco.rua}"/>
                </p:column>

                <p:column headerText="Cep">
                    <h:outputText value="#{endereco.cep}"/>
                </p:column>

                <p:column headerText="Cidade">
                    <h:outputText value="#{endereco.cidade}"/>
                </p:column>

                <p:column headerText="Estado">          
                    <h:outputText value="#{endereco.estado}"/>
                </p:column>
            </p:dataTable>
        </h:form>
    </h:body>
</html>